package com.sino.struts2;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.sino.business.IPatentManageQxkwService;
import com.sino.business.IPatentManageStatService;
import com.sino.business.IStaticDataService;
import com.sino.model.QxkwModel;

public class QxkwStatAction extends ActionSupport {
	private IPatentManageStatService patentManageStatService;

	private IStaticDataService staticDataService;
	private IPatentManageQxkwService patentManageQxkwService;

	private List qxkwStatList;

	private String qxkw;// 基本表推荐单位

	private List basicInfoList;
	private String qxkwtype;// 基本表推荐单位
	private int patentAllCount;//专利总数

	public int getPatentAllCount() {
		return patentAllCount;
	}

	public void setPatentAllCount(int patentAllCount) {
		this.patentAllCount = patentAllCount;
	}

	public String getPatentStatByQxkw() {
		patentAllCount=this.getPatentManageStatService().getPatentStatAllCount();
		qxkwStatList = this.getPatentManageStatService()
				.getPatentStatByQxkw();
		return SUCCESS;

	}

	public String getPatentStatListByQxkw() {
         
		basicInfoList = this.getPatentManageStatService()
				.getPatentStatByQxkw(qxkw);
		QxkwModel qm=new QxkwModel();
		qm.setId(qxkw);
		qm=this.getPatentManageQxkwService().getQxkwById(qm);
		qxkwtype=qm.getName();
		
		return SUCCESS;

	}

	

	public IStaticDataService getStaticDataService() {
		return staticDataService;
	}

	public void setStaticDataService(IStaticDataService staticDataService) {
		this.staticDataService = staticDataService;
	}

	public String getQxkw() {
		return qxkw;
	}

	public void setQxkw(String qxkw) {
		this.qxkw = qxkw;
	}

	public List getQxkwStatList() {
		return qxkwStatList;
	}

	public void setQxkwStatList(List qxkwStatList) {
		this.qxkwStatList = qxkwStatList;
	}

	public List getBasicInfoList() {
		return basicInfoList;
	}

	public void setBasicInfoList(List basicInfoList) {
		this.basicInfoList = basicInfoList;
	}

	public IPatentManageQxkwService getPatentManageQxkwService() {
		return patentManageQxkwService;
	}

	public void setPatentManageQxkwService(
			IPatentManageQxkwService patentManageQxkwService) {
		this.patentManageQxkwService = patentManageQxkwService;
	}

	public String getQxkwtype() {
		return qxkwtype;
	}

	public void setQxkwtype(String qxkwtype) {
		this.qxkwtype = qxkwtype;
	}

	public IPatentManageStatService getPatentManageStatService() {
		return patentManageStatService;
	}

	public void setPatentManageStatService(
			IPatentManageStatService patentManageStatService) {
		this.patentManageStatService = patentManageStatService;
	}

}
